package com.lei.myBatis.dao;

import java.util.List;

import com.lei.myBatis.entity.RuleEntity;

public interface RuleDaoMapper {
	
    public RuleEntity getRuleById(Integer id);
	
	public List<RuleEntity> getRuleList(RuleEntity ruleEntity);
	
	public void addRule(RuleEntity ruleEntity);
	
	public int updateRule(RuleEntity ruleEntity);
	
	public int deleteRule(Integer id);
	
	List<RuleEntity> listAllByTree();
}
